package com._520it.crm.service.impl;

import com._520it.crm.domain.Tax;
import com._520it.crm.mapper.TaxMapper;
import com._520it.crm.service.ITaxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaxServiceImpl implements ITaxService {
    @Autowired
    private TaxMapper taxMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return taxMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Tax record) {
        return taxMapper.insert(record);
    }

    @Override
    public Tax selectByPrimaryKey(Long id) {
        return taxMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Tax> selectAll() {
        return taxMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Tax record) {
        return taxMapper.updateByPrimaryKey(record);
    }
}
